

public class DeteUtil {
    public int year;
    public int month;
    public int day;
    public void setDate(DeteUtil this,int year,int month,int day) {
        this.year=year;
        this.month=month;
        this.day=day;
    }
    public void show() {
        System.out.println("年:"+this.year+"月:"+this.month+"日:"+this.day);
    }

    public static void main(String[] args) {
        DeteUtil deteutil=new DeteUtil();
        deteutil.setDate(2022,11,6);
        deteutil.show();
       // System.out.println(this.day);error
    }
}
